import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import axios from 'axios'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 引入样式
import './assets/css/normalize.css'
import './assets/fonts/iconfont.css'
import './assets/css/index.less'

// 引入全局的过滤器
import './utils/filters'

Vue.use(ElementUI)
Vue.config.productionTip = false

// 测试代码 - 就是测完了可以删掉的代码
// axios.get('http://127.0.0.1:9527/static/data/users.json').then(res => {
//   console.log(res.data)
// })

// async function getData() {
//   const data = await req.post('/users/checkLogin', {
//     account: '小貂蝉',
//     password: 666
//   })
//   console.log(data, 123)
// }
// getData()

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
